package com.bxx.ermall.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bxx.ermall.common.dto.SiteListDto;
import com.bxx.ermall.entity.GoodsSite;
import com.bxx.ermall.mapper.GoodsSiteMapper;
import com.bxx.ermall.service.GoodsSiteService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author buxiaoxing
 * @since 2021-02-02
 */
@Service
public class GoodsSiteServiceImpl extends ServiceImpl<GoodsSiteMapper, GoodsSite> implements GoodsSiteService {

    @Override
    public List<SiteListDto> vipList() {
        return this.baseMapper.vipList();
    }

    @Override
    public Page<SiteListDto> normalList(Page<SiteListDto> page, String keyWord) {
        return page.setRecords(this.baseMapper.normalList(page,keyWord));
    }
}
